package com.ygnn.common.Vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.time.LocalDate;
import java.util.Date;

/**
 * ClassName:OrderVo
 * Package:com.ygnn.common.Vo
 * Description:
 *
 * @Author: dlh
 * @Creat:2024/10/10-16:13
 */
@Data
@Component
@ApiModel("响应")
public class OrderVo {
    //SELECT user_id, times, km, start_date,end_date, amount ,status
    @ApiModelProperty("乐跑id")
    private int userId;
    @ApiModelProperty("乐跑次数")
    private int times;
    @ApiModelProperty("乐跑km数")
    private int km;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("乐跑开始日期")
    private Date startDate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("乐跑结束日期")
    private Date endDate;
    @ApiModelProperty("付款金额")
    private int amount;
    @ApiModelProperty("status")
    private int status;
    @ApiModelProperty("下单时间")
    private Date creatTime;
}
